<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
<head>
   <meta charset="utf-8"> 
   <title>宇桥网站内容管理系统-用户管理</title>
   <link rel="stylesheet" href="css/bootstrap.min.css">
   <link rel="stylesheet" href="css/bootstrap-table.min.css">
   <script type="text/javascript" src="js/bootstrap-table.min.js"></script>
   <script type="text/javascript" src="js/bootstrap-table-zh-CN.min.js"></script>
   <script type="text/javascript" src="js/user.js"></script>
</head>
<body>
<div class="container">
	<div class="row clearfix">
		<div class="col-md-3 column">
			<div class="list-group">
				<a id="usermanage" class="list-group-item active" onclick="showuserdiv();return false;">用户管理</a>
				<a id="rolemanage" class="list-group-item" onclick="showrolediv();return false;">角色管理</a>
			</div>
		</div>
		<div id="userdiv" class="col-md-9 column">
		
    <button id="btn_adduser" type="button" class="btn btn-primary btn-xs">新建用户 </button>
    <!--存放工具栏-->
    <div id="toolbar"></div>
    <!--存放生成的表格-->
    <table id="searchResults" class="table table-hover">
    </table>

			
	<!-- 触发新增/修改用户-->
		<form action="" id="userForm">
			<div class="modal fade" id="myModal" role="dialog" aria-hidden=true aria-labelledby="myModalLabel">
				<div class="modal-dialog modal-lg">
					<div class="modal-content">
						<div class="modal-header">
							 <button id="btn_close" class="close" aria-hidden="true" type="button" data-dismiss="modal">&times;</button>
							<h4 class="modal-title" id="myModalLabel">新增用户</h4>
						</div>
						<div class="modal-body" >
					
  <input type="hidden" id="userid"  name="userid" />
  
  <div class="form-group">
  <label for="username" class="sr-only">用户名称</label>
  <input type="text" id="username" name="username" class="form-control"  placeholder="用户名称" required autofocus>
  </div>
  <div class="form-group">
  <label for="realname" class="sr-only">真实姓名</label>
  <input type="text" id="realname" name="realname" class="form-control"  placeholder="真实姓名" required autofocus>
  </div>
  <div class="form-group">
  <label for="password" class="sr-only">用户密码</label>
  <input type="text" id="password" name="password" class="form-control"  placeholder="用户密码" required>
  </div>
  <div class="form-group">
	<label for="name">选择角色</label>
	<div class="checkbox" id="rolesCheck">
		
	</div>

	</div>
	<div class="modal-footer">
	<button id="btn_cancel" class="btn btn-default" type="button" data-dismiss="modal">关闭</button>
	<button id="btn_submit" class="btn btn-primary" type="button" >保存</button>
	</div>
	</div>
	</div>
	</div>
	</div>	
	</form>
	<!-- 弹出窗体 -->
	</div>
	<!--end userdiv-->
		
	<div id="rolediv" class="col-md-9 column">
		
    <button id="btn_addrole" type="button" class="btn btn-primary btn-xs">新建角色 </button>
 <!--存放工具栏-->
    <div id="toolbar"></div>
    <!--存放生成的表格-->
    <table id="searchRoleResults" class="table table-hover">
    </table>

			
	<!-- 触发新增/修改用户-->
		<form action="" id="roleForm">
			<div class="modal fade" id="roleModal" role="dialog" aria-hidden=true aria-labelledby="roleModalLabel">
				<div class="modal-dialog modal-lg">
					<div class="modal-content">
						<div class="modal-header">
							 <button id="btn_close" class="close" aria-hidden="true" type="button" data-dismiss="modal">&times;</button>
							<h4 class="modal-title" id="roleModalLabel">新增角色</h4>
						</div>
						<div class="modal-body" >
					
  <input type="hidden" id="roleid"  name="roleid" />
  
  <div class="form-group">
  <label for="rolename" class="sr-only">角色名称</label>
  <input type="text" id="rolename" name="rolename" class="form-control"  placeholder="角色名称" required autofocus>
  </div>

  <div class="form-group">
	<label for="name">选择权限</label>
	<div class="checkbox" id="rightsCheck">
		
	</div>

  </div>
 
	</div>
	<div class="modal-footer">
	<button id="btn_cancel" class="btn btn-default" type="button" data-dismiss="modal">关闭</button>
	<button id="btn_role_submit" class="btn btn-primary" type="button" >保存</button>
	</div>
	</div>
	</div>
	</div>
		
	</form>
	<!-- 弹出窗体 -->
		</div>
		<!--end rolediv-->		
		
	</div>
</div>

</body>
</html>